function tabChange(obj,id){
	$(obj).parent().find('li').removeClass('wlzp_show_tit_cur');
	$(obj).attr('class','wlzp_show_tit_cur');
	$(".zphnetdiv").addClass("none");
	$("#"+id).removeClass("none");
	$("#boxtype").val(id);
	if(id == 'hall'){
		$("#ztype").val('resume');
	}else{
		$("#ztype").val('job');
	}
	window.location.href = "#" + id;
}
function noresume(){
	var pwcf = layer.confirm("您还没有简历,先去创建简历?",function(){
		layer.close(pwcf);
		window.location.href = weburl+'/member/index.php?c=expect&act=add';
	});
}
function zphend(){
	layer.open({
		type: 1,
		title: '提示',
		closeBtn: 1,
		border: [10, 0.3, '#000', true],
		area: ['auto', 'auto'],
		content: $("#zphend")
	});
}
function clickZphnet(zid){
	
	layer.load('执行中，请稍候...',0);
	
	$.post(weburl+"/index.php?m=zphnet&c=ajaxZphnet",{zid:zid},function(data){
		
		layer.closeAll('loading');
		
		var data	=	eval('('+data+')');
		var status 	= 	data.status;
		
		if(status == 1){
			
			layer.msg(data.msg, 2, 9, function(){
				location.reload();
			});
			
		}else if(status == 2){
			
			server_single('zphnet',data.jifen,data.price);
			$('#zid').val(data.zid);
			
			if(data.spid == 1){
				layer.msg('当前账户套餐余量不足，请联系主账户增配！' , 2, 8);return false;
			}else{
				var msglayer = layer.open({
					type: 1,
					title: '预定网络招聘会',
					closeBtn: 1,
					border: [10, 0.3, '#000', true],
					area: ['auto', 'auto'],
					content: $("#tcmsg"),
					cancel: function(){
						window.location.reload();
					}
				});
			}
		}else{
			if(data.login == 1){
				showlogin('2');
			}else{
				layer.msg(data.msg, 2, 8);
			}
		}
	}) 
}
function zphnetLook(id, comid, jobid, url){
	layer.load();
	var param = {
		id: id, 
		comid: comid
	};
	if(jobid != ''){
		param.jobid = jobid;
	}
	$.ajax({
		url: weburl + "/index.php?m=zphnet&c=setLook",
		async: false,
		data: param,
		type: 'POST',
		success:function (data) {
			layer.closeAll('loading');
			window.open(url);
		}
	});
}